package com.wesley.consumer.controller;

import com.wesley.dubbo.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

//    @Reference(version = "default")
//    @Reference(version = "default", loadbalance = "roundrobin")
    @Autowired
    private DemoService demoService;

    @RequestMapping("/consumer/user/say")
    public String sayHello() {
        return demoService.sayHello(" Wesley Controller");
    }
}
